package com.zmn.oms.common.constant;

/**
 * 类描述: oms 错误码
 * https://git.xiujiadian.com/document/develop/blob/master/%E6%8E%A5%E5%8F%A3%E9%94%99%E8%AF%AF%E7%A0%81%E5%AE%9A%E4%B9%89%E4%B8%8E%E4%BD%BF%E7%94%A8%E8%AF%B4%E6%98%8E.md
 *
 * @author liuying
 * @date 2021/01/28 下午7:04
 */
public class OmsErrorCodeConsts {
    //    10 通用异常
    //    11 参数异常
    //    12 配置异常
    //    13 数据异常
    //    14 业务异常

    /**
     * 最小错误码
     */
    public static final int MIN_CODE = 999999;

    /**
     * 系统错误
     */
    public static final int SYS_ERROR = 88100001;

    /**
     *参数校验异常
     */
    public static final int PARAMS_VERIFY_EXCEPTION = 88110001;

    /**
     * 重复的订单信息
     */
    public static final int ORDER_INFO_DUPLICATE = 88140001;

    /**
     * 进行中的返修信息
     */
    public static final int ORDER_INFO_REWORKING = 88140002;

    /**
     * 订单不存在
     */
    public static final int ORDER_NOT_FOUND = 88140003;

    /**
     * 订单不是进行中
     */
    public static final int ERROR_ORDER_CANCEL_STATUS = 88140004;

    /**
     * 订单取消审核处理中-师傅审核
     */
    public static final int ERROR_ORDER_CANCEL_CHECK_REVIEW_MASTER = 88140005;

    /**
     * 订单取消审核处理中-员工审核
     */
    public static final int ERROR_ORDER_CANCEL_CHECK_REVIEW_STAFF = 88140006;

    /**
     * 优惠金额不能为负
     */
    public static final int ERROR_DISCOUNT_AMOUNT_IS_NEGATIVE = 88110002;

    /**
     * 自动派单并发错误码
     */
//    public static final int ERROR_AUTO_DISTRIBUTE_CODE = 88140005;

    /**
     * 抢单-订单已被抢
     */
    public static final int ERROR_GRAB_ORDER_CODE = 88200001;

    /**
     * 抢单-订单信息发生变更
     */
    public static final int ERROR_MODIFY_GRAB_ORDER_INFO_CODE = 88200002;

    /**
     * 抢单-获取工程师信息失败
     */
    public static final int ERROR_ENGINEER_INFO_CODE = 88200003;

    /**
     * 抢单-今日抢单数量已达上限
     */
    public static final int ERROR_ENGINEER_MAX_GRAB_ORDER_CODE = 88200004;

    /**
     * 抢单-不在抢单时间内
     */
    public static final int ERROR_NON_GRAB_ORDER_CODE = 88200005;

    /**
     * 工程师领单
     */
    public static final int ERROR_MASTER_TAKE_ORDER_CODE = 88210001;

    /**
     * 参数-操作人 校验异常
     */
    public static final int PARAMS_OPERATOR_VERIFY_EXCEPTION = 88300001;

    /**
     * 调用第三方系统失败
     */
    public static final int CALL_THIRED_SYS_FAILED = 88400001;

    /**
     * 状态不合法
     */
    public static final int STATUS_NOT_LEGAL = 88400002;

    /**
     * 发送微信模板消息
     */
    public static final int SEND_MESSAGE_FAIL = 88400003;

    /**
     * 计价器产品已被修改
     */
    public static final int PRODUCT_CHANGED = 88400004;

    /**
     * 验券失败，是否强制核销(dms错误码)
     */
    public static final int ERROR_USE_COUPON_CODE = 83000033;

    /**
     * 言而有信家修匠质保金余额不足错误码
     */
    public static final int ERROR_JXJ_BALANCE_CODE = 88400005;

    /**
     * 核销配件失败（scm2错误码）
     */
    public static final int ERROR_USE_IN_PART_CODE = 86203004;

    /**
     * 用户未关注公众号
     */
    public static final int ERROR_WECHAT_NO_ATTENTION_CODE = 88140007;
}
